package com.huiyi.order.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.huiyi.order.mapper.AppointmentOrderMapper;
import com.huiyi.order.domain.AppointmentOrder;
import com.huiyi.order.service.IAppointmentOrderService;

/**
 * 诊断管理Service业务层处理
 * 
 * @author zfz
 * @date 2024-11-13
 */
@Service
public class AppointmentOrderServiceImpl implements IAppointmentOrderService 
{
    @Autowired
    private AppointmentOrderMapper appointmentOrderMapper;

    /**
     * 查询诊断管理
     * 
     * @param orderId 诊断管理主键
     * @return 诊断管理
     */
    @Override
    public AppointmentOrder selectAppointmentOrderByOrderId(Long orderId)
    {
        return appointmentOrderMapper.selectAppointmentOrderByOrderId(orderId);
    }

    /**
     * 查询诊断管理列表
     * 
     * @param appointmentOrder 诊断管理
     * @return 诊断管理
     */
    @Override
    public List<AppointmentOrder> selectAppointmentOrderList(AppointmentOrder appointmentOrder)
    {
        return appointmentOrderMapper.selectAppointmentOrderList(appointmentOrder);
    }

    /**
     * 新增诊断管理
     * 
     * @param appointmentOrder 诊断管理
     * @return 结果
     */
    @Override
    public int insertAppointmentOrder(AppointmentOrder appointmentOrder)
    {
        return appointmentOrderMapper.insertAppointmentOrder(appointmentOrder);
    }

    /**
     * 修改诊断管理
     * 
     * @param appointmentOrder 诊断管理
     * @return 结果
     */
    @Override
    public int updateAppointmentOrder(AppointmentOrder appointmentOrder)
    {
        return appointmentOrderMapper.updateAppointmentOrder(appointmentOrder);
    }

    /**
     * 批量删除诊断管理
     * 
     * @param orderIds 需要删除的诊断管理主键
     * @return 结果
     */
    @Override
    public int deleteAppointmentOrderByOrderIds(Long[] orderIds)
    {
        return appointmentOrderMapper.deleteAppointmentOrderByOrderIds(orderIds);
    }

    /**
     * 删除诊断管理信息
     * 
     * @param orderId 诊断管理主键
     * @return 结果
     */
    @Override
    public int deleteAppointmentOrderByOrderId(Long orderId)
    {
        return appointmentOrderMapper.deleteAppointmentOrderByOrderId(orderId);
    }
}
